import request from '@/utils/request'

// 查询渠道扩展信息列表
export function listChannelExtInfo(query) {
  return request({
    url: '/channel/channelExtInfo/list',
    method: 'get',
    params: query
  })
}

// 查询渠道扩展信息详细
export function getChannelExtInfo(channelCode) {
  return request({
    url: '/channel/channelExtInfo/' + channelCode,
    method: 'get'
  })
}

// 新增渠道扩展信息
export function addChannelExtInfo(data) {
  return request({
    url: '/channel/channelExtInfo',
    method: 'post',
    data: data
  })
}

// 修改渠道扩展信息
export function updateChannelExtInfo(data) {
  return request({
    url: '/channel/channelExtInfo',
    method: 'put',
    data: data
  })
}

// 删除渠道扩展信息
export function delChannelExtInfo(channelCode) {
  return request({
    url: '/channel/channelExtInfo/' + channelCode,
    method: 'delete'
  })
}
